home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / bbs_util / bsrc_260.zip / SRC.ZIP / B_HELP.C < prev    next >
C/C++ Source or Header  |  1996-03-24  |  5KB  |  129 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software, Co.                       */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          Freely Available<tm> Software.                 */
  7. /*        \ 1011 /                                                          */
  8. /*         ------                                                           */
  9. /*                                                                          */
  10. /*              (C) Copyright 1987-96, Bit Bucket Software Co.              */
  11. /*                                                                          */
  12. /*               This module was written by Vince Perriello                 */
  13. /*                                                                          */
  14. /*                       BinkleyTerm "HELP" Module                          */
  15. /*                                                                          */
  16. /*                                                                          */
  17. /*    For complete  details  of the licensing restrictions, please refer    */
  18. /*    to the License  agreement,  which  is published in its entirety in    */
  19. /*    the MAKEFILE and BT.C, and also contained in the file LICENSE.260.    */
  20. /*                                                                          */
  21. /*    USE  OF THIS FILE IS SUBJECT TO THE  RESTRICTIONS CONTAINED IN THE    */
  22. /*    BINKLEYTERM  LICENSING  AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF    */
  23. /*    THIS  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES,  OR IF YOU DO    */
  24. /*    NOT HAVE THESE FILES,  YOU  SHOULD  IMMEDIATELY CONTACT BIT BUCKET    */
  25. /*    SOFTWARE CO.  AT ONE OF THE  ADDRESSES  LISTED BELOW.  IN NO EVENT    */
  26. /*    SHOULD YOU  PROCEED TO USE THIS FILE  WITHOUT HAVING  ACCEPTED THE    */
  27. /*    TERMS  OF  THE  BINKLEYTERM  LICENSING  AGREEMENT,  OR  SUCH OTHER    */
  28. /*    AGREEMENT AS YOU ARE ABLE TO REACH WITH BIT BUCKET SOFTWARE, CO.      */
  29. /*                                                                          */
  30. /*                                                                          */
  31. /* You can contact Bit Bucket Software Co. at any one of the following      */
  32. /* addresses:                                                               */
  33. /*                                                                          */
  34. /* Bit Bucket Software Co.        FidoNet  1:104/501, 1:343/491             */
  35. /* P.O. Box 460398                AlterNet 7:42/1491                        */
  36. /* Aurora, CO 80046               BBS-Net  86:2030/1                        */
  37. /*                                Internet f491.n343.z1.fidonet.org         */
  38. /*                                                                          */
  39. /* Please feel free to contact us at any time to share your comments about  */
  40. /* our software and/or licensing policies.                                  */
  41. /*                                                                          */
  42. /*--------------------------------------------------------------------------*/
  43.  
  44. /* Include this file before any other includes or defines! */
  45.  
  46. #include "includes.h"
  47.  
  48. void 
  49. main_help ()
  50. {
  51.     char *c;
  52.     int i;
  53.  
  54.     screen_clear ();
  55.     for (i = 0; i <= 10; i++)
  56.         scr_printf (MSG_TXT (M_MAIN_HELP + i));
  57.  
  58.     for (i = 0; i < 9; i++)
  59.     {
  60.         if (keys[i] != NULL)
  61.         {
  62.             c = keys[i];
  63.             while (*c && (*c != '\n'))
  64.             {
  65.                 if (*c == '\r')
  66.                     *c = '|';
  67.                 ++c;
  68.             }
  69.  
  70.             (void) sprintf (e_input, MSG_TXT (M_MACRO_HELP), i + 1, keys[i]);
  71.             e_input[79] = '\0';
  72.             scr_printf (e_input);
  73.  
  74.             c = keys[i];
  75.             while (*c && (*c != '\n'))
  76.             {
  77.                 if (*c == '|')
  78.                     *c = '\r';
  79.                 ++c;
  80.             }
  81.         }
  82.     }
  83.  
  84.     scr_printf (MSG_TXT (M_PRESS_ANYKEY));
  85.     (void) FOSSIL_CHAR ();
  86.     scr_printf ("\r\n");
  87. }
  88.  
  89. void 
  90. mailer_help ()
  91. {
  92.     int i;
  93.  
  94.     screen_clear ();
  95.     for (i = 0; i <= 14; i++)
  96.         scr_printf (MSG_TXT (M_MAILER_HELP + i));
  97.  
  98.     if (do_screen_blank)
  99.     {
  100.         scr_printf (MSG_TXT (M_BLANK_HELP));
  101.     }
  102.  
  103.     if (BBSreader != NULL)
  104.     {
  105.         (void) sprintf (e_input, MSG_TXT (M_EDITOR_HELP), BBSreader);
  106.         scr_printf (e_input);
  107.     }
  108.  
  109.     for (i = 0; i < 9; i++)
  110.     {
  111.         if (shells[i] != NULL)
  112.         {
  113.             (void) sprintf (e_input, MSG_TXT (M_SHELL_HELP), i + 1, shells[i]);
  114.             scr_printf (e_input);
  115.         }
  116.     }
  117.  
  118.     scr_printf (MSG_TXT (M_PRESS_ANYKEY));
  119.     (void) FOSSIL_CHAR ();
  120.     scr_printf ("\r\n");
  121.     if (fullscreen)
  122.     {
  123.         screen_clear ();
  124.         sb_dirty ();
  125.         opening_banner ();
  126.         mailer_banner ();
  127.     }
  128. }
  129.